@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --ebfq3-container-width: 1100px;
    --ebfq3-dark: #0b1329;
    --ebfq3-primary: #0f172a;
    --ebfq3-secondary: #0284c7;
    --ebfq3-accent: #06b6d4;
    --ebfq3-gray: #e2e8f0;
    --ebfq3-white: #ffffff;

    --ebfq3-space-xs: .4rem;
    --ebfq3-space-sm: .8rem;
    --ebfq3-space-md: 1.2rem;
    --ebfq3-space-lg: 2rem;
    --ebfq3-space-xl: 3rem;

    --ebfq3-fs-sm: .85rem;
    --ebfq3-fs-md: 1.05rem;

    --ebfq3-transition: .35s cubic-bezier(.4, 0, .2, 1);
}

body {
    direction: rtl;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ebfq3-section {
    display: flex;
    justify-content: center;
    background: #ffffff;
    width: 100%;
    padding: 60px 0;
}

.ebfq3-container {
    max-width: var(--ebfq3-container-width);
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--ebfq3-space-lg);
}

.ebfq3-title {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #0f172a;
    position: relative;
    padding-bottom: 12px;
}

.ebfq3-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #0284c7, #06b6d4);
    border-radius: 2px;
}

.ebfq3-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ebfq3-item {
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--ebfq3-transition);
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.ebfq3-question {
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
    font-size: var(--ebfq3-fs-md);
    font-weight: 700;
    color: #0f172a;
    padding: 18px 24px;
    transition: var(--ebfq3-transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ebfq3-space-md);
    font-family: inherit;
}

.ebfq3-question-text {
    flex: 1;
    text-align: right;
}

.ebfq3-chevron {
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--ebfq3-secondary);
    border-bottom: 2.5px solid var(--ebfq3-secondary);
    transform: rotate(45deg);
    transition: var(--ebfq3-transition);
    flex-shrink: 0;
}

/* دوران السهم عند الفتح */
.ebfq3-item.ebfq3-open .ebfq3-chevron {
    transform: rotate(-135deg);
}

.ebfq3-item.ebfq3-open {
    border-color: rgba(2, 132, 199, 0.4);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.1);
}

.ebfq3-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: all var(--ebfq3-transition);
    display: flex;
}

.ebfq3-item.ebfq3-open .ebfq3-answer {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.ebfq3-item:hover {
    border-color: rgba(2, 132, 199, 0.3);
}

.ebfq3-answer p {
    padding: 0 24px 20px;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.7;
    color: #475569;
}